home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
029a
/
swpr100.zip
/
SWAPPER.DOC
next >
Wrap
Text File
|
1991-10-03
|
3KB
|
102 lines
SWAPPER 1.0
A simple program to Swap files in a configurable way.
=====================================================
By: Massimo Gentilini
Via Marco Polo 50
40131 BOLOGNA Italy
E-Mail: FidoNet 2:332/401
Compuserve 100016,3007
Bix MaxGent
-----------------------------------------------------
0) Introduction
The Swapper program is a program designed to copy a file randomly choosed
from a list over another file. You can use it to change the background
.BMP file of Windows each time that you boot your computer, to change the
final image of your BBS each time that a user Logoff, to display a random
choosed Gif image every time you boot your PC and so on, the possible uses
are limited only by your imagination.
This program is different from other programs on the market because it allows
you to give a different probability to be choosed to each file, so that
you can use more often your preferred file and less often the others. This
is achieved via a simple control file.
1) Usage
Usage of Swapper is really easy, simply give the following Dos command:
SWAPPER name_of_config_file output_file_name
the program will choose a random file from that listed in
'name_of_config_file' and will copy it over 'output_file_name'.
WARNING: output_file_name will be ALWAYS be deleted and overwritten,
so be careful.
Examples:
Swapper config.ctl windows.bmp
Swapper c:\bin\utils\ansi.ctl ansiwelc.ans
Swapper c:\gif\gif_list.cfg c:\welcome.gif
The format of control file is the following:
;---------------------------------------- cut here -------------
; A line that starts with a ; or a blank space is considered as
a comment. All the following filenames MUST start in the first
; column of file
; Format is
;
; c:\pathname\filename weight
;
; Example
;
NICEGIRL.GIF 4
C:\GIF\WONDER.GIF 20
D:\GIF\N5.GIF 30
PRETTY.GIF 6
;---------------------------------------- End of file ---------
The pathname could be omitted, in this case Swapper will try to load
file from current directory.
The weight indicates the probability of the file to be choosed. The higher
is the number the higher is the probability. In the previous example
if you start the program for 60 times (the sum of weights) the first
file will be choosen 4 times, the second 20 and so on.
If you want that all file have the same probability simply put the same
weight in all lines or leave it blank (in this case, or if the program
will not be able to parse the number, a weight of 1 will be assumed).
2) Warranty
There is no warranty. I can only assure that the program was not a virus
or a trojan horse when it left my home, with the following validate
values:
File Name: swapper.exe
Size: 11,293
Date: 10-3-1991
File Authentication:
Check Method 1 - B256
Check Method 2 - 0F7D
3) Shareware
This is a Shareware program. If you like it and use it please send
10 dollars or more at the above address. Please send money or international
checks, credit card and regular checks will not be processed.
4) Bug information and other request
Please feel free to contact me at one of the above addresses.